<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>

<script src="<s:url value="/script/jquery_last.js"/>" type="text/javascript"></script>
<script type="text/javascript" src="<s:url value="/script/easyajax.js"/>"></script>
<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>

<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
	
	
<script>
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;

</script>

</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<s:url value="/images/new/gxzl_index_2.gif"/>">
			<tr>
				<td width="20" height="32">&nbsp;</td>
				<td width="20"><img
					src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
					height="12" /></td>
					<td>当前位置：业务需求交互单管理</td>

				</tr>
		</table>
		</td>
	</tr>
	
  <tr> 
    <td  background="<s:url value="/images/home_4a.gif"/>"> 
      <table width="100%" height="400" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
		<td valign="top">
		  <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
			<tr>
			  <td valign="top">
				<s:form action="saveTransactProcessStatus.action" namespace="/security" method="post" enctype="multipart/form-data">
				  <input type="hidden" name="transactProcessStatus.id" value="${transactProcessStatus.id}">
				  <table width="98%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
						<TABLE width="96%" border="0" height="26" cellPadding=0 cellSpacing=1>
						  <TR height=30> 
							<TD align=left> 
								<input type="submit" name="Submit" value="保 存">
								<input type="button" name="Submit" value="提 交" onclick="document.forms[0].action='submitProcess.action';beforeSaveInfo();">
								<s:if test="transactProcessStatus.id!=null && transactProcessStatus.currProcessConfigDetail.nodeType!=0">
								<input type="button" name="Submit" value="回 退" onclick="document.forms[0].action='backProcess.action';document.forms[0].submit();">
								</s:if> 
								<input type="button" value="返 回" onClick="location.href='curBusinessRequest.action'"></TD>
						  </TR>
						</table>

				<table border="0" cellspacing="0" cellpadding="7" align="center" class=tablecolor2>
				  <tr>
					<td background="<s:url value="/images/catalog_manage_bbs_3.gif"/>" colspan="4"><span style="margin-top:0px;margin-left:14px"><img src="<s:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt=""></span> <strong>流程信息</strong></td>
				  </tr>
                  <tr>
                    <td width="12%" bgcolor="D6E3FA"><div align="right" class="STYLE2">当前状态：</div></td>
                    <td width="38%">
                    	<input type="text" name="transactProcessStatus.currProcessConfigDetail.name" 
                    	value="${transactProcessStatus.currProcessConfigDetail.name}"  size="40" class="input_nob" readonly>
                    	<input type="hidden" name="transactProcessStatus.currProcessConfigDetail.id" value="${transactProcessStatus.currProcessConfigDetail.id}" >
                    </td>
                    <td bgcolor="D6E3FA" width="12%"><div align="right" class="STYLE2">当前办理人：</div></td>
                    <td width="*">
                    	${sessionScope.LOGINUSER_CONTEXT.currUser.person.name}
                    	<input type="hidden" name="transactProcessStatus.currTransactor" value="${transactProcessStatus.currTransactor}"  size="40" readonly>
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2"><font color="red">*</font>当前流程：</div></td>
                    <td colspan="3">
          <s:if test="processConfigs==null">
          	<input type="radio"  name="transactProcessStatus.currProcessConfig.id"  value="<s:property value="transactProcessStatus.currProcessConfig.id" />" ><s:property value="transactProcessStatus.currProcessConfig.name" />
        	</s:if>	
										</td>
                  </tr>

                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">办理意见：</div></td>
                    <td colspan="3">
											<textarea cols="96" rows="4" id="transactInfo" name="transactorInfo" ></textarea>					
                    </td>
                  </tr>
                </table>
                <table border="0" cellspacing="0" cellpadding="7" align="center" class=tablecolor2>
				  <tr>
					<td background="<s:url value="/images/catalog_manage_bbs_3.gif"/>" colspan="4"><span style="margin-top:0px;margin-left:14px"><img src="<s:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt=""></span> <strong>基本信息</strong></td>
				  </tr>
                  <tr>
                  	<input type="hidden" name="businessRequest.id" value="<s:property value="businessRequest.id" />"/>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2"><font color="red">*</font>发 起 人：</div></td>
                    <td width="286">
                    	<input type="text" name="startPerson" value="${businessRequest.startPerson.name}" class="input_nob" size="40" readonly>
                    	<input type="hidden" name="businessRequest.startPerson.id" value="${businessRequest.startPerson.id}" >
                    </td>
                    <td bgcolor="D6E3FA" width="140"><div align="right" class="STYLE2"><font color="red">*</font>发起部门：</div></td>
                    <td width="268">
                    	<input type="text" name="businessRequest.startDept.name" value="${businessRequest.startDept.name}" 
                    	 class="input_nob" size="40" readonly>
                    	<input type="hidden" name="businessRequest.startDept.id" value="${businessRequest.startDept.id}" >
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">联系电话：</div></td>
                    <td>
                    	<s:textfield name="businessRequest.phone" theme="css_xhtml" size="40" />
                    </td>
                    <td bgcolor="D6E3FA" width="140"><div align="right" class="STYLE2">发起时间：</div></td>
                    <td width="268">
                    	<s:date name="businessRequest.begin" format="yyyy-MM-dd HH:mm:ss" />
                    	<input type="hidden" name="businessRequest.begin" value="<s:property value="businessRequest.begin" />"/>
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">通知方式：</div></td>
                    <td>
                    	<s:textfield name="businessRequest.callMode" theme="css_xhtml" size="40" />
                    </td>
                    <td bgcolor="D6E3FA" width="140"><div align="right" class="STYLE2">要求完成时间：</div></td>
                    <td width="268">
                    	<s:date name="businessRequest.end" format="yyyy-MM-dd HH:mm:ss" />
                    	<input type="hidden" name="businessRequest.end" value="<s:property value="businessRequest.end" />"/>                    	
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2"><font color="red">*</font>名&nbsp;&nbsp;&nbsp;&nbsp;称：</div></td>
                    <td >
											<s:textfield name="businessRequest.name" theme="css_xhtml" size="40" />
                    </td>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">重要性：</div></td>
                    <td >
										<select>
											<option>高</option>
											<option>中</option>
											<option>低</option>
										</select>
					  </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2"><font color="red">*</font>内&nbsp;&nbsp;&nbsp;&nbsp;容：</div></td>
                    <td colspan="3">
											<s:textarea name="businessRequest.content" theme="css_xhtml" cols="96" rows="4" />
					  </td>
                  </tr>
                  <tr> 
                    <td width="111" bgcolor="D6E3FA"> <div align="right" class="STYLE2">附&nbsp;&nbsp;&nbsp;&nbsp;件：</div></td>
                    <td colspan="3">
											<table width="90%" border="0" class=tablecolor2>
												<tr>
													<td width="60%" align="center" bgcolor="D6E3FA">附件名称</td>
													<td width="18%" align="center" bgcolor="D6E3FA">是否发布</td>
													<td width="18%" align="center" bgcolor="D6E3FA">删除</td>
												</tr>
												<s:iterator id="attach" value="attachs">
												<input type="hidden" name="attachIDs" value="<s:property value="id" />"/>
												<tr>
													<td>
														<a href="<s:url value="/common/showFile.action?attach.id="/><s:property value="id" />"
															target="_blank">
															<s:property value="fullName" />
														</a>
													</td>
													<td align="center"><input type="checkbox"
														name="publishIDs" value="<s:property value="id" />"
 														<s:if test="isPublish==1">checked</s:if>></td>
													<td align="center"><input type="checkbox"
														name="delIDs" value="<s:property value="id" />"></td>
												</tr>
												</s:iterator>
											</table>
											<br>
                      <table width="90%" border="0" class=tablecolor2>
                        <tr>
                          <td width="" colspan="2" align="left" bgcolor="D6E3FA">附件上传</td>
                        </tr>
                        <tr>
                          <td width="10px">&nbsp;</td>
                          <td align="left">
                          	<input type="file" name="upload" size="40"/>
                          </td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td><input type="file" name="upload" size="40"/>
                          </td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td><input type="file" name="upload" size="40"/>
                          </td>
                        </tr>
                      </table>
                      </div></td>
                  </tr>
                </table>


				<table width="100%" border="0" cellspacing="0" cellpadding="7" align="center" class=tablecolor2>
				  <tr>
					<td background="<s:url value="/images/catalog_manage_bbs_3.gif"/>" colspan="4"><span style="margin-top:0px;margin-left:14px"><img src="<s:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt=""></span> <strong>办理过程</strong></td>
				  </tr>
				  <tr>
           			<td height="167" colspan="4">
					 <table width="100%" border="0" class=tablecolor2>
                          <tr>
                            <td align="center" bgcolor="D6E3FA">序号</td>
                            <td align="center" bgcolor="D6E3FA">办理步骤</td>
                            <td align="center" bgcolor="D6E3FA">办理人员</td>
                            <td align="center" bgcolor="D6E3FA">办理时间</td>
                            <td align="center" bgcolor="D6E3FA">办理意见</td>
                          </tr>
						<s:iterator value="procTranRecords" status="st">
                          <tr>
                            <td align="center"><s:property value="#st.getIndex()+1"/></td>
                            <td><s:property value="processStep.name"/></td>
                            <td><s:property value="transactor.name"/></td>
                            <td><s:property value="transactTime"/></td>
                            <td><s:property value="transactInfo"/></td>
                          </tr></s:iterator>
                        </table>
					</td>
                  </tr>	 
                </table>
				</td>
              </tr>
            </table>
										
						</td>
					</tr>
                  </table>
				  </s:form>
				</td>
			</tr>
          </table>
		</td>
		</tr>
	  </table>
	</td>
	</tr>
</table>
</body>
</html>
<script>
<!--

	function uploadFile(id) {
		window.open('<s:url value="/common/uploadFile.action?attach.refEntity=PRODUCTREFERENCE&attach.refEntityID="/>'+ id, "uploadfile",
						"dialogWidth=420px;dialogHeight=300px");
	}
	
	function addComponent()
	{
		var uploadHTML=document.createElement("<input type='file'　name='upload'/>");
		document.getElementById("files").appendChild(uploadHTML);
		uploadHTML=document.createElement("<p/>");
		document.getElementById("files").appendChild(uploadHTML);
	}
	
function selectMainPerson(){
    var url="<s:url value='/' escapeAmp='false'/>"+"organ/toOrganTree.action?type=&path=toPersonTree&module=checkbox&date=<%=System.currentTimeMillis()%>";
	 var returnData=window.showModalDialog(url,window,"status:no;dialogWidth:650px;dialogHeight:600px;scroll:yes;");
	 if(returnData){
	 	document.forms[0]["nextPersonName"].value=returnData[1];
	 	document.forms[0]["nextPerson"].value=returnData[0];
	 }
}
function selectPerson(){
    var url="<s:url value='/' escapeAmp='false'/>"+"organ/toOrganTree.action?type=&path=toPersonTree&module=checkbox&date=<%=System.currentTimeMillis()%>";
	 var returnData=window.showModalDialog(url,window,"status:no;dialogWidth:650px;dialogHeight:600px;scroll:yes;");
	 if(returnData){
	 	document.forms[0]["personNames"].value=returnData[1];
	 	document.forms[0]["persons"].value=returnData[0];
	 }
}
var personAjax=new AjaxObj();
function getRef(processConfigDetailId){	
	callSynchronized("<s:url value="/bpm/viewTransactorByType.action"/>?conds.id="+processConfigDetailId,function(XML){//同步调用
	    personAjax=new AjaxObj();
	    personAjax.xml=XML.responseXML;
	    personAjax.menuId="personId";
	    //personAjax.menuId="readPersonId";
	    //alert(personAjax.xml.xml);
	    personAjax.createMenu();
	});
}


var currProcessConfigDetailId= ${transactProcessStatus.currProcessConfigDetail.id}+"";


var detailName=document.all["transactProcessStatus.currProcessConfigDetail.name"];
var detailId=document.all["transactProcessStatus.currProcessConfigDetail.id"];

function clearList(sel){
	if(sel&&sel.options&&sel.options.length>0){
		for(var i=sel.options.length;i>0;i--){
			sel.removeChild(sel.options[i-1]);
		}
	}
}

if(document.all["transactProcessStatus.currProcessConfig.id"][0]){
	document.all["transactProcessStatus.currProcessConfig.id"][0].click();
}
else if(document.all["transactProcessStatus.currProcessConfig.id"]){
	document.all["transactProcessStatus.currProcessConfig.id"].click();
}

function beforeSaveInfo(){
	if(document.all["businessRequest.name"]&&document.all["businessRequest.name"].value==""){
				alert("请输入名称!");
				return false;
	}
	if(document.all["businessRequest.content"]&&document.all["businessRequest.content"].value==""){
				alert("请输入内容!");
				return false;
	}

	document.forms[0].submit();
	return true;
}

function isNullSel(obj){
	if(obj&&obj.options&&obj.options.selectedIndex!=-1&&obj.options[obj.options.selectedIndex].value!=""){
		return false;
	}
	return true;
}
-->
</script>